package com.bf.electroplating.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.checkerframework.checker.units.qual.A;

/**
 * 记录字典表类型
 */
@Getter
@AllArgsConstructor
public enum DicTypeEnums {

    PWLX("PLWX", "排污类型"),
    FSLX("FSLX", "废水类型"),
    ;

    private final String code;
    private final String desc;

    public static String getDesc(String code) {
        for (DicTypeEnums item : DicTypeEnums.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }
}
